/**
 * User Controller
 */


import UserService from '../../service/User';

import BaseConterller from '../Base';

let userService = new UserService();

function sleep(ms = 0) {
	return new Promise((resolve, reject) => setTimeout(function(){ resolve('asd') }, ms));
}
function sleep1(ms = 0) {
	return 'sss';
}
function test() {
	for (let i = 0; i < 10; i++) {
		let j = sleep1(500);
		console.log(`i=${i}`, j);
	}
	return 'sadsd';
}


@Controller
@RequestMapping({value:'/user'})
export default class UserController extends BaseConterller{

	@RequestMapping({value: '/login', method:'post'})
	login(req, $res, username, password) {
		

		
	}

	@RequestMapping({value: '/cba', dataType:'txt'})
	async cba($req, $res, abc) {

		var s = await userService.Count();
		
		return s;
	}

}
